from django.conf.urls import url
from rest_framework import routers

from recognition.views import CodeWhiteListViewSet
from . import views

router = routers.SimpleRouter()
router.register(r'cwls', CodeWhiteListViewSet, base_name='code-white-list')

urlpatterns = [
    url(r'^index', views.index),
    url(r'^reg', views.recognize),

]

urlpatterns += router.urls
